Skip to content

Commit 800c7d4

Browse files
authored
only trigger sourcery on files that are newly created or on the file system (#65)
1 parent 5cf3f40 commit 800c7d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function createLangServer(context: ExtensionContext): LanguageClient {
3737
};
3838

3939
const clientOptions: LanguageClientOptions = {
40-
documentSelector: ['python'],
40+
documentSelector: [{language: 'python', scheme: 'file'}, {language: 'python', scheme: 'untitled'}],
4141
synchronize: {
4242
configurationSection: 'sourcery'
4343
},

0 commit comments

Comments
 (0)