Comments (2)
This VSCode issue might contain relevant pointers for dart's lsp support of relevant APIs.
from flutter-tools.nvim.
@amitkot this is already implemented via the LSP it turned out I didn't need to add much, it's a setting in the language server settings renameFilesWithClasses = 'prompt'
if you add this that functionality should already work.
I added and tested it a while ago and have been using it. Just forgot to update this.
The behaviour is documented in https://github.com/dart-lang/sdk/blob/master/pkg/analysis_server/tool/lsp_spec/README.md#client-workspace-configuration
The deletion and creation part aren't really necessary since the LSP client in nvim communicates with the LSP about what files are created or deleted, so that doesn't need to be here or need special handling. I'm going to actually close this out, since I just forgot to do it.
I've just added the options to the docs so it's clearer that it's available
from flutter-tools.nvim.
Related Issues (20)
- [BUG] Duplicates in cmp suggestions HOT 1
- [BUG] FlutterRename command not updating imports
- Adding snippet support HOT 3
- [BUG] Insane delay after pressing enter HOT 4
- [BUG] FlutterRun on Windows 11
- Semantic tokens problem HOT 1
- [BUG] Color visualizer not working HOT 4
- [Help] `flutter attach` command support?
- [Question] Is there a way to setup the flutter-tools lsp to `autostart`? HOT 4
- Question: Multiple devices HOT 1
- [BUG] Chrome device not listed
- Configuring the color of widget lines HOT 1
- Freezes when empty function exists HOT 4
- [BUG] Debugger crashes when breakpoint exists HOT 2
- [BUG] Syntax highlighting not working immediately HOT 3
- [BUG] Hot reloading does not work on save HOT 1
- LSP not found HOT 1
- [feature] set `flutterMode` from .nvim.lua config file HOT 1
- How to configure launch flavor with arguments (args)?
- Add herline.nvim support HOT 1
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 flutter-tools.nvim.