-
Notifications
You must be signed in to change notification settings - Fork 9
Refactor pylance reusable pieces to only depend upon protocol types #30
Conversation
@@ -2,8 +2,8 @@ | |||
// Licensed under the MIT License. | |||
|
|||
'use strict'; | |||
import * as vscode from 'vscode'; | |||
import * as protocol from 'vscode-languageclient/node'; | |||
import * as vscodeUri from 'vscode-uri'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@heejaechang @bschnurr this file should now be not using any of the vscode types.
@@ -0,0 +1,952 @@ | |||
// Copyright (c) Microsoft Corporation. All rights reserved. | |||
// Licensed under the MIT License. | |||
import * as os from 'os'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same with this file. Should be vscode free.
import * as vscode from 'vscode'; | ||
import * as protocol from 'vscode-languageclient/node'; | ||
import * as vscodeUri from 'vscode-uri'; | ||
import * as protocol from 'vscode-languageclient'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if it helps but we get all the types for TextDocument, Range, Position from vscode-languageserver-types
lib
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh thanks. I'll try that and see what happens. Should be the same I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't work, but 'vscode-languageserver-protocol' seems to work. I'll switch to that one.
For microsoft/vscode-jupyter#8467