Comments (4)
I can confirm it works now. Thanks for fixing this so quickly!
from vsnetrw.
Hey @lwieckowski 👋! Taking a look at this now.
I have line numbers disabled globally across vscode, so I'm afraid I wouldn't ever have caught this in development.
I can't explicitly remember doing anything specific to turn line numbers off as part of the extension, but it seems like I did add that to the package specific configuration here.
Line 111 in 8345990
Given that they appear then disappear, I wonder if vscode is reloading the package level config each time?
A quick test could be to add the following to your own settings.json
and see whether that prevents the flashing?
"[vsnetrw]": {
"editor.lineNumbers": "off"
}
It could also be the case that the extension mode isn't set initially, which causes the flash? In that case, I'm not sure what the workaround would be. It seems a little bit odd that there would be any time window where editor.lineNumbers
was not "off"
.
If you get any more clues, do shout and I can look at what the fix might be.
from vsnetrw.
Hey @danprince, thanks for looking into it so quickly. Unfortunately, explicitly setting line numbers to off for vsnetrw
in settings.json
did not help. It seems these settings are set by default anyway (vscode suggested autocomplete).
It seems that vscode loads extension specific settings after the document has been loaded with the global settings.
What seems to work is to set line numbers to off globally, and then enable them for specific file types. I think this is good enough for me, there are not that many.
BTW, I love the extension, exactly what I've been looking for after not being able to use vim at work. Great job 👍
EDIT:
I just noticed that when a new directory is opened in vsnetrw, the file type briefly changes to plain text. Setting line numbers to off for plain text solves the issue. This way I can keep the line number enabled globally, and don't need to set them for different file types.
from vsnetrw.
BTW, I love the extension, exactly what I've been looking for after not being able to use vim at work. Great job 👍
🥳
Thanks for investigating! The plain text discovery was a great clue. It turns out the extension was setting the language type after showing the document. The order should be correct now.
Lines 118 to 122 in e5b5966
I've published that change in v0.3.2
, so feel free to try it out and see if it fixes that problem without a need for the workaround.
from vsnetrw.
Related Issues (16)
- opens when replacing in normal mode HOT 1
- show git status in explorer HOT 1
- show problems status in explorer HOT 1
- explorers do not refresh if revisited / re-opened HOT 1
- multiline deletion HOT 1
- changes are lost when attempting to rename an unsaved file
- watch directories whilst explorer is open
- ~ keybinding conflict HOT 1
- Close vsnetrw tab when opening a file HOT 2
- gitignore colouring
- Could you please implement bookmarks? HOT 6
- netrw shortcuts
- duplicate file shortcut HOT 1
- jump to dir with prompt
- Add breadcrumbs functionality HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vsnetrw.