File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
packages/databricks-vscode/src/language Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,15 @@ export class ConfigureAutocomplete implements Disposable {
113113 }
114114
115115 private async configure ( force = false ) {
116+ if (
117+ ! force &&
118+ this . context . workspaceState . get < boolean > (
119+ "skipConfigureAutocomplete"
120+ )
121+ ) {
122+ return ;
123+ }
124+
116125 const pythonExtension = extensions . getExtension ( "ms-python.python" ) ;
117126 if ( pythonExtension === undefined ) {
118127 window . showWarningMessage (
@@ -163,13 +172,22 @@ export class ConfigureAutocomplete implements Disposable {
163172 const choice = await window . showInformationMessage (
164173 "Do you want to configure autocompletion for Databricks specific globals (dbutils etc)?" ,
165174 "Configure" ,
166- "Cancel"
175+ "Cancel" ,
176+ "Never for this workspace"
167177 ) ;
168178
169179 if ( choice === "Cancel" || choice === undefined ) {
170180 return ;
171181 }
172182
183+ if ( choice === "Never for this workspace" ) {
184+ this . context . workspaceState . update (
185+ "skipConfigureAutocomplete" ,
186+ true
187+ ) ;
188+ return ;
189+ }
190+
173191 for ( const { fn} of steps ) {
174192 const result = await this . tryStep ( ( ) => fn ( false ) ) ;
175193 if ( result === "Error" || result === "Cancel" ) {
You can’t perform that action at this time.
0 commit comments